import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'wel',
      component: () => import('@/views/index.vue')
    },
    {
      path: '/table',
      name: 'table',
      component: () => import('@/views/table.vue')
    }
  ]
});
router.onError((error) => {
  console.error('Router error:', error);
});
export default router;
